<template include="./plugin/xxx_theme_flarum/view/htm/my.template.htm">
    <slot name="my_body">
        <div class="SettingsPage">
            <ul>
                <li class="item-notifications">
                    <fieldset class="Settings-notifications">
                        <legend><?php echo lang('my_basic_profile');?></legend>
                        <ul>
                            <li class="item-notificationGrid">
                                <table class="NotificationGrid">
                                    <tbody>
                                        <tr>
                                            <td class="NotificationGrid-groupToggle">
                                                <i class="icon fa fa-fw fa-users "></i> <?php echo lang('user_group');?>
                                            </td>
                                            <td>
                                                <?php echo $user['groupname'];?>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="NotificationGrid-groupToggle">
                                                <i class="icon fa fa-fw fa-envelope"></i> <?php echo lang('email');?></td>
                                            <td>
                                                <?php echo $user['email'];?>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="NotificationGrid-groupToggle">
                                                <i class="icon fa fa-fw fa-diamond"></i> <?php echo lang('digests');?></td>
                                            <td>
                                                <?php echo $user['digests'];?>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="NotificationGrid-groupToggle">
                                                <i class="icon fa fa-fw fa-star"></i> <?php echo lang('haya_favorite_count'); ?></td>
                                            <td>
                                                <a href="<?php echo url("my-favorites"); ?>" target="_blank">
                                                    <?php echo intval($user['favorites']);?>
                                                </a>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </li>
                        </ul>
                    </fieldset>
                </li>
            </ul>
        </div>
    </slot>
</template>

<script>
$('li[data-active="my-profile"]').addClass('active');
</script>